<!-- 我的列表 -->

<template>
  <div class="LiftVertical-MyList">
    <div>
      <div v-for="item in list" :key="item.id" class="LiftVertical-MyList-item">
        <div
          class="flex"
          :class="{ 'LiftVertical-MyList-item-alarm': item.props.faultName.text }"
          @click="windowDetail(item)"
        >
          <MyImg :obj="item" />
          <MyBase :obj="item" />
        </div>
      </div>
    </div>

    <el-empty v-if="isEmpty" description="暂无电梯" />

    <WebTable :elPageProps="MAP.MY_PAGE" noTable />
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import mixDetailToTable from '@admin/components/detail/mixDetailToTable'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'MyList',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [mixDetailToTable('', 'DetailLiftVertical')],

  /**
   * 组件导入 (Abc.vue + Abc/index.vue)
   */
  ...CORE.components(
    require.context('@admin/views/Monitor/detail/DetailLiftVertical', true, /vue$/),
    require.context('./', true, /vue$/),
  ),
}
</script>

<style lang="scss">
@import './index.scss';
</style>
